<?php
/**
 * Created by PhpStorm.
 * User: win7
 * Date: 2018/7/12 0012
 * Time: 10:21
 */

namespace Wx\Controller;


class PartnerController extends CommonController
{
    //首页
    public function index(){
        $this->display('partner');
    }//end fun

    //加入我们
    public function join(){
        $join = M("joinus")->add($_POST);//添加
        if($join){
            $this->ajaxReturn(['state'=>0],"JSON");
        }else{
            $this->ajaxReturn(['state'=>1,'val'=>'提交失败'],"JSON");
        }
    }//end fun
}//end class